package org.deltaset.secured.domain;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author dmakariev
 */
abstract class AbstractRepository {

    private EntityManager entityManager;

    @PersistenceContext
    public void setEntityManager(EntityManager entityManager) {
        this.entityManager = entityManager;
    }

    protected EntityManager entityManager() {
        return entityManager;
    }
}
